package com.itheima.dubbo.mongodb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.annotation.PostConstruct;

/**
 * @author yaohu
 * @date 2021/12/6
 * @Version 1.0
 * @describe
 */
@SpringBootApplication
@EnableAsync
public class MongoDBService {
    public static void main(String[] args) {

        System.setProperty("es.set.netty.runtime.available.processors", "false");


        SpringApplication.run(MongoDBService.class, args);
    }
}
